// 用户
import {
	request
} from "../utils/request"

export default {
	// 订单支付
	orderWxPay: (data) => {
		return request({
			url: `/member/order/wx/pay`,
			method: 'POST',
			data
		})
	},
	// 删除订单
	orderWxRemove: (data) => {
		return request({
			url: `/member/order/wx/remove/${data.orderNo}`,
		})
	},
	// 确认收货
	orderExpressWxReceipt: (data) => {
		return request({
			url: `/member/orderExpress/wx/receipt/${data.orderNo}/${data.orderExpressId}`,
		})
	},
	// 取消订单
	orderWxCancel: (data) => {
		return request({
			url: `/member/order/wx/cancel/${data.orderNo}`,
		})
	},
	// 订单列表
	orderWxList: (nav,data) => {
		return request({
			url: `/member/order/wx/list/${nav}`,
			data
		})
	},
	// 订单详情
	orderWxDetail: (data) => {
		return request({
			url: `/member/order/wx/detail/${data.orderNo}`,
		})
	},
	// 支付查询
	orderWxPayQuery: (data) => {
		return request({
			url: `/member/order/wx/pay/query/${data.orderNo}`,
		})
	},
	//创建订单 
	orderWxCreate: (data) => {
		return request({
			url: `/member/order/wx/create`,
			method: 'POST',
			data
		})
	},
	//确认订单/计算订单
	orderWxConfirm: (data) => {
		return request({
			url: `/member/order/wx/confirm`,
			method: 'POST',
			data
		})
	},
	// // 获取我的关注
	// followList: (data) => {
	// 	return request({
	// 		url: `/follow/list`,
	// 		method: 'POST',
	// 		contentType: "application/x-www-form-urlencoded",
	// 		data
	// 	})
	// },


}
